from RPubEngine import *

loc = '/Users/thatcherclay/Workbench/RPub/test/Basic.R'
outputDir = '/Users/thatcherclay/Workbench/RPub/samples'

tempDir ='/Users/thatcherclay/Workbench/RPub/templates/basicTemplate'
outputName = 'SampleRDocument.html'

setupOutputDirectory(outputDir,tempDir)
doc = parseDocument(loc,outputDir,tempDir)
generateOutputFile(doc, 'R Publication', outputDir, outputName, tempDir)
